// 用户模块
const base = '/api/admin'
export default {
  // 登录
  userLogin: {
    url: `${base}/user/login`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 退出
  userLogout: {
    url: `${base}/user/logout`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 用户
  listUser: {
    url: `${base}/user/list`,
    contentType: 'form',
    method: 'get',
    serviceName: 'admin'
  },
  // 修改用户
  updateUser: {
    url: `${base}/user/update`,
    contentType: 'form',
    method: 'get',
    serviceName: 'admin'
  },
  // 新增用户
  addUser: {
    url: `${base}/user/add`,
    contentType: 'form',
    method: 'get',
    serviceName: 'admin'
  },
  // 菜单
  listMenu: {
    url: `${base}/menu/list`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 树菜单
  treeMenu: {
    url: `${base}/menu/treeMenu`,
    contentType: 'form',
    serviceName: 'admin'
  },
  menuPageList: {
    url: `${base}/menu/pageList`,
    contentType: 'form',
    serviceName: 'asset'
  },
  // 新增菜单
  addMenu: {
    url: `${base}/menu/add`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 修改增菜单
  updateMenu: {
    url: `${base}/menu/update`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 修改角色
  updateRole: {
    url: `${base}/role/update`,
    contentType: 'form',
    method: 'get',
    serviceName: 'admin'
  },
  // 新增角色
  addRole: {
    url: `${base}/role/add`,
    contentType: 'form',
    method: 'get',
    serviceName: 'admin'
  },
  // 系统的url
  listSystem: {
    url: `${base}/dictionary/listByGCode`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 刷新字典数据
  refreshDictConf: {
    url: `${base}/reload/dictionary`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 所有的字典数据
  getAllGCode: {
    url: `${base}/dictionary/getAllGCode`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 服务器信息
  serverInfo: {
    url: `${base}/common/serverInfo`,
    contentType: 'form',
    method: 'get',
    serviceName: 'admin'
  },
  rolePageList: {
    url: `${base}/role/pageList`,
    contentType: 'form',
    serviceName: 'asset'
  },
  dictPageList: {
    url: `${base}/dictionary/pageList`,
    contentType: 'form',
    serviceName: 'asset'
  },
  // 新增菜单
  addDict: {
    url: `${base}/dictionary/add`,
    contentType: 'form',
    serviceName: 'admin'
  },
  // 修改增菜单
  updateDict: {
    url: `${base}/dictionary/update`,
    contentType: 'form',
    serviceName: 'admin'
  }
}
